<!--{if $previewshow}-->
<table class="tableborder" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
		<td>
		<table cellspacing="1" cellpadding="4" width="100%" border="0">
			<tr class="tile_back_nowidth">
				<td class="tile_back_nowidth" colspan="3">
				<strong class="title">&nbsp; {print_form[76]}</strong> </td>
			</tr>
			<tr class="article_color1">
				<td valign="top" width="25%">{echo $previewshow}</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<br />
<!--{/if}-->
<!-- BEGIN posttable -->
<script type="text/javascript">
//<![CDATA[ 
helpstat = false;
stprompt = true;
basic = false;
clckcnt = 0;
var postmaxchars = {echo $max_post_length};
var postminchars = {echo $min_post_length};

ie = (document.all)? true:false
function ctlent(eventobject){
	if((eventobject.ctrlKey && eventobject.keyCode==13) || (eventobject.altKey && eventobject.keyCode == 83)) {
		document.getElementById("quicksubmit").click();
	}
}
function check_file_ext(fobject,extcount) {
	ext_exists = 0;
	if (fobject.value!="") {
		available_exts = "{echo $upload_type_available}"
		available_ext = available_exts.split(' ');
		for (i = 0; i < extcount; i++) {
			currentext = available_ext[i].toLowerCase();
			str1=fobject.value.toLowerCase();
			s=str1.lastIndexOf("."); 
			str2=str1.substring(s+1).toLowerCase(); 
			if (str2==currentext) {
				ext_exists = 1;
			}
		}
	}
	if (ext_exists != 1) {
		alert("{echo $alert_error_ext}");
		fobject.style.backgroundColor="#FFFF77";
	} else {
		fobject.style.backgroundColor="";
	}
}
function clckcntr() {
clckcnt++;
if(clckcnt > 1) {
	if(clckcnt > 2) { return false; }
	alert('{print_form[19]}');
	return false;
}
return true;
}

function thelp(swtch){
if (swtch == 1){
	basic = false;
	stprompt = false;
	helpstat = true;
	} else if (swtch == 0) {
		helpstat = false;
		stprompt = false;
		basic = true;
	} else if (swtch == 2) {
		helpstat = false;
		basic = false;
		stprompt = true;
	}
}

function AddText(NewCode) {
document.FORM.articlecontent.value+=NewCode
}
function validate(theform) {
	var usertype_z = "{echo $usertype_z}";
	if (theform.tags.value=="" && usertype_z == 1) {
		alert("{print_form[tags]}");
		clckcnt=0;
		return false; 
	}
	if ((theform.articletitle.value=="" && ("{echo $action}" == "new" || ("{echo $action}" == "modify" && "{echo $filename}" == "{echo $article}"))) || theform.articlecontent.value=="") {
		alert("{print_form[20]}");
		clckcnt=0;
		return false;
	}
	if (postmaxchars != 0) {
		if (theform.articlecontent.value.length > {echo $max_post_length} || theform.articlecontent.value.length < {echo $min_post_length}) {
			alert("{print_form[21]} {echo $min_post_length}-{echo $max_post_length} {print_form[22]} "+theform.articlecontent.value.length+"{print_form[23]}");
			clckcnt=0;
			return false; }
		else { document.getElementById("quicksubmit").disabled=true; return true; }
	} else { document.getElementById("quicksubmit").disabled=true; return true; }
}
function checklength(theform) {
	if (postmaxchars != 0) { message = "{print_form[24]} {echo $max_post_length} {print_form[114]} {echo $min_post_length} {print_form[23]}"; }
	else { message = ""; }
	alert("{print_form[25]} "+theform.articlecontent.value.length+" {print_form[23]}"+message);
}
function checklayer(objs){
if(objs.checked==true){
MM_showHideLayers('Layer1','','show');
}else{
MM_showHideLayers('Layer1','','hide');
}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function DoTitle(addTitle) { 
if ("{echo $set_a_tags}"==1) {
	var mytags = addTitle;
	if (mytags != "") document.FORM.tags.value = document.FORM.tags.value == "" ? mytags : mytags + " " + document.FORM.tags.value;
	document.FORM.tags.focus(); 
} else{
var revisedTitle; 
var currentTitle = document.FORM.articletitle.value; 
revisedTitle = "["+addTitle+"]"+currentTitle; 
document.FORM.articletitle.value=revisedTitle; 
document.FORM.articletitle.focus(); 
}
return; 
}
function DoComments(addTitle) { 
var revisedTitle; 
var currentTitle = document.FORM.articlecontent.value; revisedTitle = currentTitle+addTitle; document.FORM.articlecontent.value=revisedTitle; document.FORM.articlecontent.focus(); 
return; 
}
function tagls()
{
	var mytags = document.FORM.tagsse.options[document.FORM.tagsse.selectedIndex].value;
	if (mytags != "") document.FORM.tags.value = document.FORM.tags.value == "" ? mytags : mytags + " " + document.FORM.tags.value;
}
//]]>>
</script>
<table class="tableborder" cellspacing="0" cellpadding="0" align="center" border="0">
	<tr>
		<td>
		<form style="margin: 0px;" name="FORM" method="post" action="post.php" onsubmit="return validate(this)" enctype="multipart/form-data">
			<table cellspacing="1" cellpadding="4" width="100%" border="0">
				<tr class="tile_back_nowidth">
					<td class="forum_border_one_3" colspan="3">
					<strong class="title">&nbsp;{echo $status}</strong> </td>
				</tr>
				<tr class="forumcolortwo_noalign">
					<td class="forum_border_one_3" valign="top" width="25%"><strong>{print_form[26]}</strong></td>
					<td class="forum_border_one_3" valign="top" width="75%" colspan="2">
					<select name="font" onchange="DoTitle(this.options[this.selectedIndex].value)">
					<option selected="selected" value="">{print_form[27]}</option>
					{echo $t_t_option}
					</select>
					<input value="{echo $articletitle}" maxlength="45" size="45" name="articletitle" />
					</td>
				</tr>
				<tr class="forumcoloronecolor">
					<td class="forum_border_one_3"><strong>{print_form[40]}</strong></td>
					<td class="forum_border_one_3" colspan="2">{echo $infoones} </td>
				</tr>
				<tr class="forumcolortwo_noalign">
					<td class="forum_border_one_3"><strong>{print_form[41]}</strong><br />
					<a href="javascript:this.location.reload()">{print_form[42]}</a>{print_form[43]}</td>
					<td class="forum_border_one_3" colspan="2" valign="top" class="forumcolortwo_noalign">{echo $emoypicshos}
					</td>
				</tr>
				{echo $loginshows}
				<!--{if $type=="vote"}-->
				<!--{template poll}-->
				<!--{/if}-->
				<tr class="forumcoloronecolor">
					<td class="forum_border_one_3" valign="top" width="125"><strong>{print_form[44]}</strong><br />
					<br />
					<input type="checkbox" name="open_1nd" onclick="checklayer(this);" id="open_nd" /><label for="open_nd">{print_form[64]}</label><br />
					{echo $echotwosysye}<div title="{print_form[113]}" id="Layer1" class="post_options" ondblclick="MM_showHideLayers('Layer1','','hide');document.FORM.open_1nd.checked=false;">
						<input type="checkbox" name="usesignature" value="checkbox" {echo $somepostinfo[0]} id="open_2" /><label for="open_2">{print_form[65]}</label><br />
						<input type="checkbox" name="openbmbcode" {echo $somepostinfo[1]} value="checkbox" id="open_3" /><label for="open_3">{print_form[66]}</label>
						<br />
						<input type="checkbox" name="openbmbemot" {echo $somepostinfo[2]} value="checkbox" id="open_4" /><label for="open_4">{print_form[67]}</label>
						<br />
						<fieldset>
						<legend><strong>{print_form[57]}</strong></legend>
						{print_form[53]}<select name="helpmode" onchange="thelp(document.FORM.helpmode.options[document.FORM.helpmode.selectedIndex].value)">
						<option value="2">{print_form[54]}</option>
						<option value="1">{print_form[55]}</option>
						<option value="0">{print_form[56]}</option>
						</select><br />
						<a href="javascript:checklength(document.FORM);">{print_form[58]}</a></fieldset><br />
						<input class="input3" type="checkbox" checked="checked" value="yes" name="actioneot" id="open_11" /><label for="open_11">{print_form[59]}</label>
						<select onchange="DoComments(this.options[this.selectedIndex].value)">
						<option value="" selected="selected">{print_form[60]}</option>
						{echo $actinfoshows}</select> <br />
						{echo $output2info} {echo $outputinfo} {echo $showulist} </div>
					<strong class="cau">
					<a href="javascript:openScript('bmbcode.php',700,500)">
					BMB Code</a></strong> {print_form[45]}<br />
					{print_form[46]}
					<a href="javascript:openScript('bmbcode.php',700,500)"><strong>{print_form[47]}</strong></a> 
					{print_form[48]} <br />
					{echo $showsinfotwo} <br />
					<br />
					{echo $wemotinfoshow}<br />
					<strong><a target="_blank" href="faq.php?page=5#get2">{print_form[52]}</a>
					</strong></td>
					<td class="forum_border_one_3" colspan="2" align="left">{echo $panelbar}
					<textarea onkeydown="ctlent(event)" name="articlecontent" rows="15" cols="96">{echo $articlecontent}</textarea>
					</td>
				</tr>
<!--{if $set_a_tags}-->
				<tr class="forumcolortwo_noalign">
					<td class="forum_border_one_3"><strong>{print_form[G1]}</strong><br/>{print_form[G4]}{echo $max_tags_num}</td>
					<td class="forum_border_one_3" colspan="2">{print_form[G2]}<br />{echo $chooser_c}
					<input value="{echo $oldtags}" maxlength="65" size="65" name="tags" /> 
					{print_form[G3]} </td>
				</tr>
<!--{/if}-->
				<tr class="forumcoloronecolor">
					<td class="forum_border_one_3" valign="top"><strong>{print_form[69]} [{print_form[70]}{echo $leftuploadnum}]:</strong><br />
					{print_form[71]} {echo $max_upload_size} 
					{print_form[72]}<br />
					{print_form[73]} {echo $max_upload_post} 
					{print_form[74]}</td>
					<td class="forum_border_one_3" colspan="2" align="center">{echo $uploadfileshow} 
					{echo $showtype} {echo $showaaash} &nbsp;</td>
				</tr>
<!--{if $usertype[120] == 1 && $allow_upload}-->
				<tr class="forumcolortwo_noalign">
					<td class="forum_border_one_3" valign="top"><strong>{print_form[119]}:</strong></td>
					<td class="forum_border_one_3" colspan="2" align="left">
					{print_form[120]}<input type="text" size="65" value="{echo $remote_upload}" name="remote_upload" /><br />
					{print_form[123]}<input type="text" size="65" value="{echo $remote_referer}" name="remote_referer" /><br />
					{print_form[121]}
					</td>
				</tr>
<!--{/if}-->
				<tr class="forumcoloronecolor" align="center">
					<td colspan="3">
					<input onclick="return clckcntr();" type="submit" value="{print_form[75]}" name="quicksubmit" id="quicksubmit" />&nbsp;&nbsp;&nbsp;
					<input type="hidden" value="2" name="step" />
					<input type="hidden" value="{echo $action}" name="action" />
					<input type="hidden" value="{echo $page}" name="page" />
					<input type="hidden" value="{echo $type}" name="type" />
					<input type="hidden" value="{echo $forumid}" name="forumid" />
					<input type="hidden" value="{echo $visual}" name="visual" />{echo $echoinfotwo}
					<input type="submit" name="preview" value="{print_form[76]}" />
					</td>
				</tr>
				<tr class="tile_back_nowidth">
					<td class="tile_back_nowidth" colspan="3">
					&nbsp;</td>
				</tr>
			</table>
		</form>
		</td>
	</tr>
</table>
<br />
<!-- END posttable_3 -->